/**
=====================================================================================
 CButtonSelect
 copyright M.Jurkait 2003

 Short-Description:
  Simple Button which draws a Arrow from top to left or right button

 Changes:
=====================================================================================
**/
#pragma once


// CButtonSelect

class CButtonSelect : public CButton
{
        DECLARE_DYNAMIC(CButtonSelect)

    public:
        CButtonSelect();
        virtual ~CButtonSelect();

    protected:
        DECLARE_MESSAGE_MAP()
        virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
    public:
        virtual void DrawItem(LPDRAWITEMSTRUCT /*lpDrawItemStruct*/);

        afx_msg BOOL OnBnClicked();

        void SetMaxState(int nm);
        int  GetSelection();
        void SetSelection(int sel);

    private:
        int  n_state;
        int  n_state_max;

};


